{*include file="template/admin_head.htm"*}

<table width="100%" cellpadding="0" cellspacing="0" id="containtable" class="{*$cf_controller*}">
    <tr>
        <td valign="top" bgcolor="#FFFFFF">
            <div class="wrapper pr_8">
                {*if $cf_action=='add' || $cf_action=='edit'*}
                <script type="text/javascript">
                    $(function(){
											
											call_uploader('#admin_reward_qrcode_button','#admin_reward_qrcode','nofix',{'show':'#admin_reward_qrcode_show'});
											{*if $row['admin_reward_qrcode']*}
											$("#admin_reward_qrcode_show").append(show_photo_div("#admin_reward_qrcode_button","#admin_reward_qrcode","{*$row['admin_reward_qrcode']*}","admin",false));
											{*/if*}
                        
					   
					   
					    $("#act_form").submit(function(){
				
                            if($("#admin_name").val()==''){
                                my_alert('请输入用户名','操作提示',"$('#admin_name').focus()");
                                return false;
                            };
						
                            if(!check_string($("#admin_name").val(),'ename')){
                                my_alert('用户名格式不正确,只允许26个英文字母及数字','操作提示',"$('#admin_name').focus()");
                                return false;
                            }
						
				
                            if($("#act").val()=='add'){
                                if($("#admin_pwd_new").val()==''){
                                    my_alert('请输入密码','操作提示',"$('#admin_pwd_new').focus()");
                                    return false;
                                };
                                if($("#admin_pwd_new2").val()==''){
                                    my_alert('请输入确认密码','操作提示',"$('#admin_pwd_new2').focus()");
                                    return false;
                                };
                            }
                            if($("#act").val()=='self'){
                                if($("#admin_pwd").val()==''){
                                    my_alert('请输入原密码','操作提示',"$('#admin_pwd').focus()");
                                    return false;
                                };
                            }
						
						
                            if($("#admin_pwd_new").val() && $("#admin_pwd_new2").val() && $("#admin_pwd_new").val()!=$("#admin_pwd_new2").val()){
                                my_alert('两次输入的密码不一样','操作提示',"$('#admin_pwd_new2').focus()");
                                return false;
                            }
                            if($("#admin_mail").val()){
                                if(!check_string($("#admin_mail").val(),'mail')){
                                    my_alert('E-mail地址格式不正确','操作提示',"$('#admin_mail').focus()");
                                    return false;
                                }
                            }
						
                            if($("#admin_true_name").val()==''){
                                my_alert('请输入中文名','操作提示',"$('#admin_true_name').focus()");
                                return false;
                            };
						
                            if($("#admin_ename").val()){
                                if(!check_string($("#admin_ename").val(),'letter')){
                                    my_alert('英文名格式不正确','操作提示',"$('#admin_ename').focus()");
                                    return false;
                                }
                            }
                        });
					
					
                    })
                </script>


                <div class="content_panel_title">
                    <div class="contentpanelleft"></div>
                    <div class="contentpanelcenter">
                        <span class="contentpanelcenter_font">{*$subtitle*}</span>
                        <span><a class="edit at" href="{*$cf_self_page*}?dpt={*$cf_dpt*}">员工账号管理</a></span>                    </div>
                    <div class="contentpanelrihgt"></div>
                </div>
                <div class="content_table_center_style">
                    <div class="p8">
                        <form name="act_form" id="act_form" method="post" action="{*$form_action*}"  enctype="multipart/form-data">
                            <input name="id" id="id" type="hidden" value="{*$row['admin_id']*}" />
                            <input name="act" id="act" type="hidden" value="{*$cf_action*}" />
                            <input name="dpt" id="dpt" type="hidden" value="{*$cf_dpt*}" />
                            <input name="power" id="power" type="hidden" value="{*$cf_admin_info['g_act_power']*}" />
                            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbl tbl_nbr">
                                <tbody>
                                    <tr>
                                        <td colspan="4" class="stitle">用户信息</td>
                                    </tr>                                    
                                    {*if $cf_action=='add'*}
                                    <tr>
                                        <td width="14%" align="right">登录名:</td>
                                        <td align="left"><input name="admin_name" type="text" id="admin_name" value="" size="30" maxlength="20" />
                                            <span class="red">*</span></td>
                                        <td align="right">部门权限组:</td>
                                        <td align="left">{*html_options name=admin_gid options=$row['group'] selected=$row['admin_gid']*}</td>
                                    </tr>
                                    <tr>
                                        <td align="right">密码:</td>
                                        <td align="left"><input name="admin_pwd_new" type="password" id="admin_pwd_new" size="30" maxlength="20" autocomplete="off" />
                                            <span class="red">*</span></td>
                                        <td align="right">确认密码:</td>
                                        <td align="left"><input name="admin_pwd_new2" type="password" id="admin_pwd_new2" size="30" maxlength="20" autocomplete="off" />
                                            <span class="red">*</span></td>
                                    </tr>
									<tr>
                                        <td width="14%" align="right">商品分类权限:</td>
                                        <td colspan="3" align="left">{*html_checkboxes name="admin_goods_power" options=$cate_array checked=$row['admin_goods_power'] separator="&nbsp;"*}<br />
										<span class="red">选上则表示只允许此分类内操作,全不选则包含所有分类都可以操作</span></td>
                                    </tr>
                                    {*else*}
                        	{*if $row['power']=='all' || $allow=='1'*}
									
									
                                    <tr>
                                        <td width="14%" align="right">登录名:</td>
                                        <td align="left"><input name="admin_name" type="text" id="admin_name" value="{*$row['admin_name']*}" size="30" maxlength="20" />
                                            <span class="red">*</span></td>
                                        <td align="right">部门权限组</td>
                                        <td align="left">{*html_options name=admin_gid options=$row['group'] selected=$row['admin_gid']*}</td>
                                    </tr>
									<tr>
                                        <td width="14%" align="right">商品分类权限:</td>
                                        <td colspan="3" align="left">{*html_checkboxes name="admin_goods_power" options=$cate_array checked=$row['admin_goods_power'] separator="&nbsp;"*}<br />
										<span class="red">选上则表示只允许此分类内操作,全不选则包含所有分类都可以操作</span></td>
                                    </tr>
                                    {*else*}
                                    <tr>
                                        <td width="14%" align="right">员工账号名:</td>
                                        <td align="left"><input name="admin_name" type="hidden" id="admin_name" value="{*$row['admin_name']*}" />{*$row['admin_name']*}                                </td>
                                        <td align="right">部门权限组:</td>
                                        <td align="left"><input type="hidden" name="admin_gid" value="{*$row['admin_gid']*}" />{*$cf_admin_info['g_title']*}</td>
                                    </tr>
                                    {*/if*}
                                    
                                    <tr>
                                        <td align="right">新密码:</td>
                                        <td align="left"><input name="admin_pwd_new" type="password" id="admin_pwd_new" size="30" maxlength="20" /><span class="red"><br />
                                                (如不修改,请留空!)</span></td>
                                        <td align="right">确认新密码:</td>
                                        <td align="left"><input name="admin_pwd_new2" type="password" id="admin_pwd_new2" size="30" maxlength="20" /></td>
                                    </tr>
                                    {*/if*}
                                    <tr>
                                        <td align="right">提示问题:</td>
                                        <td align="left"><input name="admin_question" type="text" id="admin_question" value="{*$row['admin_question']*}" size="30" maxlength="50" /></td>
                                        <td align="right">问题答案:</td>
                                        <td align="left"><input name="admin_answer" type="text" id="admin_answer" value="{*$row['admin_answer']*}" size="30" maxlength="50" /></td>
                                    </tr>
                                    <tr>
                                        <td align="right">打赏二维码:</td>
                                        <td colspan="3" align="left"><span id='admin_reward_qrcode_show'><img style="cursor:pointer" id="admin_reward_qrcode_button" src="/public/images/admin/upload.jpg" /></span>
																				<input type="hidden" name="admin_reward_qrcode" id="admin_reward_qrcode" value="{*$row['admin_reward_qrcode']*}" /></td>
                                    </tr>
                                    {*if $row['admin_photo']*}
                                    <tr>
                                        <td align="right">已上传照片:</td>
                                        <td colspan="3" align="left">{*foreach $row['images'] as $item*}<a href="{*$item*}" target="_blank"><img src="{*$item*}" width="50" height="50" border="0" onload="javascript:drawimage(this,50,50);" /></a>&nbsp;&nbsp;{*/foreach*}<a href="{*$cf_self_path*}-act_delphoto_id_{*$row['admin_id']*}.htm" class="del" onclick="return confirm('你确定要删除吗?')">删除图片</a></td>
                                    </tr>
                                    {*/if*}
                                    <tr>
                                        <td colspan="4" class="stitle">个人基本信息</td>
                                    </tr>
                                    <tr>
                                        <td align="right">中文姓名:</td>
                                        <td width="28%" align="left"><input name="admin_true_name" type="text" id="admin_true_name" size="30" maxlength="20" value="{*$row['admin_true_name']*}" />
                                            <span class="red">*</span></td>
                                        <td width="13%" align="right">英文名:</td>
                                        <td width="45%" align="left"><input name="admin_ename" type="text" id="admin_ename" size="30" maxlength="20" value="{*$row['admin_ename']*}" /></td>
                                    </tr>
                                    <tr>
                                        <td align="right">性别:</td>
                                        <td align="left">{*html_radios name=admin_sex options=$cf_info_var_common['sex'] checked=$row['admin_sex']|default:'0'*}</td>
                                        <td align="right">出生日期:</td>
                                        <td align="left"><input name="admin_birthday" type="text" id="admin_birthday" value="{*$row['admin_birthday']*}" size="30" maxlength="20" onfocus="WdatePicker({maxDate:'{%y-20}-%m-%d',dateFmt:'yyyy-MM-dd',isShowClear:false,readOnly:true})" /></td>
                                    </tr>
                                    <tr>
                                        <td align="right">国籍:</td>
                                        <td align="left"><input name="admin_country" type="text" id="admin_country" size="30" maxlength="30" value="{*$row['admin_country']*}" /></td>
                                        <td align="right">民族:</td>
                                        <td align="left"><input name="admin_nation" type="text" id="admin_nation" size="30" maxlength="20" value="{*$row['admin_nation']*}" /></td>
                                    </tr>
                                    <tr>
                                        <td align="right"><span id="Label18">身份证/护照号:</span></td>
                                        <td align="left"><input name="admin_passport" type="text" id="admin_passport" size="30" maxlength="30" value="{*$row['admin_passport']*}" /></td>
                                        <td align="right"><span id="Label60">户口所在地:</span></td>
                                        <td align="left"><input name="admin_household" type="text" id="admin_household" size="30" maxlength="30" value="{*$row['admin_household']*}" /></td>
                                    </tr>
                                    <tr>
                                        <td align="right"><span id="Label7">婚姻状况</span>:</td>
                                        <td align="left">{*html_radios name=admin_marry_type options=$cf_info_var['marry_type'] checked=$row['admin_marry_type']|default:'0'*}</td>
                                        <td align="right">户籍类型:</td>
                                        <td align="left">{*html_options name=admin_house_type options=$cf_info_var['house_type'] selected=$row['admin_house_type']|default:'0'*}</td>
                                    </tr>
                                    <tr>
                                        <td align="right">&nbsp;</td>
                                        <td colspan="3" align="left">&nbsp;</td>
                                    </tr>

                                    <tr>
                                        <td colspan="4" class="stitle">联系信息</td>
                                    </tr>
                                    <tr>
                                        <td align="right">联系电话:</td>
                                        <td align="left"><input name="admin_mobile" type="text" id="admin_mobile" value="{*$row['admin_mobile']*}" size="30" maxlength="20" />
                                            <span class="red">*</span></td>
                                        <td align="right">办公电话:</td>
                                        <td align="left"><input name="admin_phone" type="text" id="admin_phone" value="{*$row['admin_phone']*}" size="30" maxlength="20" />
                                            &nbsp;分机号:
                                            <input name="admin_phone_ext" type="text" id="admin_phone_ext" value="{*$row['admin_phone_ext']*}" size="10" maxlength="10" /></td>
                                    </tr>
                                    <tr>
                                        <td align="right">E-mail地址:</td>
                                        <td align="left"><input name="admin_mail" type="text" id="admin_mail" value="{*$row['admin_mail']*}" size="30" maxlength="50" /></td>
                                        <td align="right">邮政编号:</td>
                                        <td align="left"><input name="admin_postal" type="text" id="admin_postal" value="{*$row['admin_postal']*}" size="30" maxlength="20" /></td>
                                    </tr>
                                    <tr>
                                        <td align="right">联系地址:</td>
                                        <td colspan="3" align="left"><input name="admin_addr" type="text" id="admin_addr" value="{*$row['admin_addr']*}" size="60" maxlength="80" /></td>
                                    </tr>
                                    <tr>
                                        <td align="right">紧急联系人:</td>
                                        <td align="left"><input name="admin_urgent_name" type="text" id="admin_urgent_name" value="{*$row['admin_urgent_name']*}" size="30" maxlength="20" /></td>
                                        <td align="right">紧急联系电话:</td>
                                        <td align="left"><input name="admin_urgent_phone" type="text" id="admin_urgent_phone" value="{*$row['admin_urgent_phone']*}" size="30" maxlength="20" /></td>
                                    </tr>
                                    <tr>
                                        <td align="right">&nbsp;</td>
                                        <td align="left">&nbsp;</td>
                                        <td align="left">&nbsp;</td>
                                        <td align="left">&nbsp;</td>
                                    </tr>
                                    {*if $cf_action!='self'*}
                                    <tr>
                                        <td colspan="4" class="stitle">职位信息</td>
                                    </tr>
                                    <tr>
                                      <td align="right">&nbsp;</td>
                                      <td align="left">&nbsp;</td>
                                      <td align="right">&nbsp;</td>
                                      <td align="left">&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td align="right">职位名称:</td>
                                        <td align="left"><input name="admin_position" type="text" id="admin_position" size="30" maxlength="20" value="{*$row['admin_position']*}" /></td>
                                        <td align="right">工作性质:</td>
                                        <td align="left">{*html_radios name=admin_work_type options=$cf_info_var['work_type'] checked=$row['admin_work_type']|default:'1'*}</td>
                                    </tr>
                                    <tr>
                                        <td align="right">员工编号:</td>
                                        <td align="left"><input name="admin_no" type="text" id="admin_no" size="30" maxlength="20" value="{*$row['admin_no']*}" /></td>
                                        <td align="right">状态:</td>
                                        <td align="left">{*html_radios name=admin_work_status options=$cf_info_var['work_status'] checked=$row['admin_work_status']|default:'0'*}</td>
                                    </tr>
                                    <tr>
                                        <td align="right">工作地点:</td>
                                        <td align="left"><input name="admin_work_place" type="text" id="admin_work_place" size="30" maxlength="20" value="{*$row['admin_work_place']*}" /></td>
                                        <td align="right">上班时间:</td>
                                        <td align="left"><input name="admin_work_time" type="text" id="admin_work_time" size="30" maxlength="30" value="{*$row['admin_work_time']*}" /> </td>
                                    </tr>

                                    <tr>
                                        <td align="right">入职日期:</td>
                                        <td align="left"><input name="admin_join_date" type="text" id="admin_join_date" size="30" maxlength="20" value="{*$row['admin_join_date']*}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false,readOnly:true})" /></td>
                                        <td align="right">离职原因:</td>
                                        <td align="left">{*html_options name=admin_reason_leaving options=$cf_info_var['admin_reason_leaving'] selected=$row['admin_reason_leaving']|default:0*}&nbsp;</td>
                                    </tr>
                                    <tr>
                               
                                        <td align="right">试用期:</td>
                                        <td align="left"><input name="admin_trail_from" type="text" id="admin_trail_from" size="15" maxlength="20" value="{*$row['admin_trail_from']*}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false,readOnly:true})" />
                                            至
                                            <input name="admin_trail_to" type="text" id="admin_trail_to" size="15" maxlength="20" value="{*$row['admin_trail_to']*}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false,readOnly:true})" /></td>
                                        <td align="right">转正日期:</td>
                                        <td align="left"><input name="admin_positive_date" type="text" id="admin_positive_date" size="30" maxlength="20" value="{*$row['admin_positive_date']*}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false,readOnly:true})" /></td>
                                    </tr>
                                    <tr>
                                        <td align="right">备注:</td>
                                        <td align="left"><input name="admin_remark" type="text" id="admin_remark" size="30" maxlength="20" value="{*$row['admin_remark']*}"/></td>
                                        <td align="right">离职日期:</td>
                                        <td align="left"><input name="admin_leaved_date" type="text" class="Wdate" id="admin_leaved_date"  size="18" onFocus="WdatePicker({minDate:'#F{$dp.$D(\'admin_leaved_date\')}',dateFmt:'yyyy-MM-dd',isShowClear:false,readOnly:true})" value="{*$row['admin_leaved_date']*}" />&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td align="right">&nbsp;</td>
                                        <td align="left">&nbsp;</td>
                                        <td align="right">&nbsp;</td>
                                        <td align="left">&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td colspan="4" class="stitle">福利待遇</td>
                                    </tr>
                                    <tr>
                                        <td align="right">试用工资:</td>
                                        <td align="left"><input name="admin_trial_wage" type="text" id="admin_trial_wage" size="30" maxlength="20" value="{*$row['admin_trial_wage']*}" /></td>
                                        <td align="right">转正工资:</td>
                                        <td align="left"><input name="admin_wage" type="text" id="admin_wage" size="30" maxlength="20" value="{*$row['admin_wage']*}" /></td>
                                    </tr>
                                    <tr>
                                        <td align="right">津贴:</td>
                                        <td align="left"><input name="admin_subsidy" type="text" id="admin_subsidy" size="30" maxlength="20" value="{*$row['admin_subsidy']*}" /></td>
                                        <td align="right">提成:</td>
                                        <td align="left"><input name="admin_percentage" type="text" id="admin_percentage" size="30" maxlength="20" value="{*$row['admin_percentage']*}" /></td>
                                    </tr>
                                    <tr>
                                        <td align="right">房屋补助:</td>
                                        <td align="left"><input name="admin_housing_subsidy" type="text" id="admin_housing_subsidy" size="30" maxlength="20" value="{*$row['admin_housing_subsidy']*}" /></td>
                                        <td align="right">其它:</td>
                                        <td align="left"><input name="admin_other_wage" type="text" id="admin_other_wage" size="30" maxlength="20" value="{*$row['admin_other_wage']*}" /></td>
                                    </tr>
                                    <tr>
                                        <td align="right">社保计算机号:</td>
                                        <td align="left"><input name="admin_social_no" type="text" id="admin_social_no" size="30" maxlength="20" value="{*$row['admin_social_no']*}" /></td>
                                        <td align="right">银行卡号:</td>
                                        <td align="left"><input name="admin_bank_no" type="text" id="admin_bank_no" size="30" maxlength="20" value="{*$row['admin_bank_no']*}" /></td>
                                    </tr>
                                    <tr>
                                        <td align="right">&nbsp;</td>
                                        <td align="left">&nbsp;</td>
                                        <td align="right">&nbsp;</td>
                                        <td align="left">&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td colspan="4" class="stitle">其它信息</td>
                                    </tr>
                                    <tr>
                                        <td align="right">有无犯罪记录</td>
                                        <td align="left">{*html_radios name=admin_criminal_type options=$cf_info_var_common['yesno2'] checked=$row['admin_criminal_type']|default:'0'*}</td>
                                        <td align="right">有无病史:</td>
                                        <td align="left">{*html_radios name=admin_sick_type options=$cf_info_var_common['yesno2'] checked=$row['admin_sick_type']|default:'0'*}</td>
                                    </tr>
                                    <tr>
                                        <td align="right">&nbsp;</td>
                                        <td align="left">&nbsp;</td>
                                        <td align="left">&nbsp;</td>
                                        <td align="left">&nbsp;</td>
                                    </tr>
                                    {*/if*}
                                    <tr>
                                        <td colspan="4" class="stitle">简历信息</td>
                                    </tr>
                                    <tr>
                                        <td align="right">&nbsp;</td>
                                        <td align="left">&nbsp;</td>
                                        <td align="left">&nbsp;</td>
                                        <td align="left">&nbsp;</td>
                                    </tr>

                                    <tr>
                                        <td colspan="4" align="center"><input type="submit" name="Submit" class="myinput" value="提 交" />
                                            &nbsp;&nbsp;
                                            <input type="button" name="back" class="myinput" value="返 回" onclick="window.history.back()" /></td>
                                    </tr>
                                </tbody>
                            </table>
                        </form>
                    </div>
                </div>
                <div class="content_main_bottom">
                    <div class="content_main_bottom_left"></div>
                    <div class="content_main_bottom_right"></div>
                </div>
				
				{*elseif $cf_action=='self'*}
				<script type="text/javascript">
                    $(function(){
                        
					   
					   
					    $("#act_form").submit(function(){
							if($("#admin_pwd").val()==''){
								my_alert('请输入原密码','操作提示',"$('#admin_pwd').focus()");
								return false;
							};

                            if($("#admin_pwd_new").val() && $("#admin_pwd_new2").val() && $("#admin_pwd_new").val()!=$("#admin_pwd_new2").val()){
                                my_alert('两次输入的密码不一样','操作提示',"$('#admin_pwd_new2').focus()");
                                return false;
                            }
                            if($("#admin_mail").val()){
                                if(!check_string($("#admin_mail").val(),'mail')){
                                    my_alert('E-mail地址格式不正确','操作提示',"$('#admin_mail').focus()");
                                    return false;
                                }
                            }
						
                            if($("#admin_true_name").val()==''){
                                my_alert('请输入中文名','操作提示',"$('#admin_true_name').focus()");
                                return false;
                            };
						
                            if($("#admin_ename").val()){
                                if(!check_string($("#admin_ename").val(),'letter')){
                                    my_alert('英文名格式不正确','操作提示',"$('#admin_ename').focus()");
                                    return false;
                                }
                            }
							if($("#admin_mobile").val()==''){
                               my_alert('请输入联系电话','操作提示',"$('#admin_mobile').focus()");
                               return false;
 
                            }
                        });
					
					
                    })
                </script>
				<div class="content_panel_title">
                    <div class="contentpanelleft"></div>
                    <div class="contentpanelcenter">
                        <span class="contentpanelcenter_font">{*$subtitle*}</span>
                        <span></span>                    </div>
                    <div class="contentpanelrihgt"></div>
                </div>
                <div class="content_table_center_style">
                    <div class="p8">
                        <form name="act_form" id="act_form" method="post" action="{*$form_action*}"  enctype="multipart/form-data">
                            <input name="id" id="id" type="hidden" value="{*$row['admin_id']*}" />
                            <input name="act" id="act" type="hidden" value="{*$cf_action*}" />
                            <input name="dpt" id="dpt" type="hidden" value="{*$cf_dpt*}" />
                            <input name="power" id="power" type="hidden" value="{*$cf_admin_info['g_act_power']*}" />
                            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbl tbl_nbr">
                                <tbody>
                                    <tr>
                                        <td colspan="4" class="stitle">用户信息</td>
                                    </tr>
                                    

                                    <tr>
                                      <td align="right">所属分店:</td>
                                      <td width="28%" align="left">{*$cf_info_var['workplace'][$row['admin_place']]*}
									  </td>
                                      <td width="13%" align="right">&nbsp;</td>
                                      <td width="45%" align="left">&nbsp;</td>
                                    </tr>
                                    
                        
                                    <tr>
                                        <td width="14%" align="right">登录名:</td>
                                        <td align="left">{*$row['admin_name']*}</td>
                                        <td align="right">部门权限组:</td>
                                        <td align="left">{*$row['group'][$row['admin_gid']]*}</td>
                                    </tr>
                                    
                                    {*if $cf_action=='self'*}
                                    <tr>
                                        <td align="right">原密码:</td>
                                        <td colspan="3" align="left"><input name="admin_pwd" type="password" id="admin_pwd" size="30" maxlength="20" autocomplete="off" />
                                            <span class="red">*</span></td>
                                    </tr>
                                    {*/if*}
                                    <tr>
                                        <td align="right">新密码:</td>
                                        <td colspan="3" align="left"><input name="admin_pwd_new" type="password" id="admin_pwd_new" size="30" maxlength="20" autocomplete="off"  />
                                        	<span class="red"> (如不修改,请留空!)</span></td>
                                    </tr>
                                    
                                    <tr>
                                    	<td align="right">确认新密码:</td>
                                    	<td colspan="3" align="left"><input name="admin_pwd_new2" type="password" id="admin_pwd_new2" size="30" maxlength="20" autocomplete="off"  /></td>
                                   	</tr>
                                    <tr>
                                    	<td align="right">提示问题:</td>
                                    	<td align="left"><input name="admin_question2" type="text" id="admin_question2" value="{*$row['admin_question']*}" size="30" maxlength="50" /></td>
                                    	<td align="right">&nbsp;</td>
                                    	<td align="left">&nbsp;</td>
                                   	</tr>
                                    <tr>
                                        <td align="right">问题答案:</td>
                                        <td align="left"><input name="admin_answer2" type="text" id="admin_answer2" value="{*$row['admin_answer']*}" size="30" maxlength="50" /></td>
                                        <td align="right">&nbsp;</td>
                                        <td align="left">&nbsp;</td>
                                    </tr>
<tr>
                                        <td colspan="4" class="stitle">个人基本信息</td>
                                    </tr>
                                    <tr>
                                        <td align="right">中文姓名:</td>
                                        <td width="28%" align="left"><input name="admin_true_name" type="text" id="admin_true_name" size="30" maxlength="20" value="{*$row['admin_true_name']*}" />
                                            <span class="red">*</span></td>
                                        <td width="13%" align="right">英文名:</td>
                                        <td width="45%" align="left"><input name="admin_ename" type="text" id="admin_ename" size="30" maxlength="20" value="{*$row['admin_ename']*}" /></td>
                                    </tr>
                                    <tr>
                                        <td align="right">性别:</td>
                                        <td align="left">{*html_radios name=admin_sex options=$cf_info_var_common['sex'] checked=$row['admin_sex']|default:'0'*}</td>
                                        <td align="right">出生日期:</td>
                                        <td align="left"><input name="admin_birthday" type="text" id="admin_birthday" value="{*$row['admin_birthday']*}" size="30" maxlength="20" onfocus="WdatePicker({maxDate:'{%y-20}-%m-%d',dateFmt:'yyyy-MM-dd',isShowClear:false,readOnly:true})" /></td>
                                    </tr>
                                    <tr>
                                        <td align="right">国籍:</td>
                                        <td align="left"><input name="admin_country" type="text" id="admin_country" size="30" maxlength="30" value="{*$row['admin_country']*}" /></td>
                                        <td align="right">民族:</td>
                                        <td align="left"><input name="admin_nation" type="text" id="admin_nation" size="30" maxlength="20" value="{*$row['admin_nation']*}" /></td>
                                    </tr>
                                    <tr>
                                        <td align="right"><span id="Label18">身份证/护照号:</span></td>
                                        <td align="left"><input name="admin_passport" type="text" id="admin_passport" size="30" maxlength="30" value="{*$row['admin_passport']*}" /></td>
                                        <td align="right"><span id="Label60">户口所在地:</span></td>
                                        <td align="left"><input name="admin_household" type="text" id="admin_household" size="30" maxlength="30" value="{*$row['admin_household']*}" /></td>
                                    </tr>
                                    <tr>
                                        <td align="right">&nbsp;</td>
                                        <td colspan="3" align="left">&nbsp;</td>
                                    </tr>

                                    <tr>
                                        <td colspan="4" class="stitle">联系信息</td>
                                    </tr>
                                    <tr>
                                        <td align="right">联系电话:</td>
                                        <td align="left"><input name="admin_mobile" type="text" id="admin_mobile" value="{*$row['admin_mobile']*}" size="30" maxlength="20" />
                                            <span class="red">*</span></td>
                                        <td align="right">办公电话:</td>
                                        <td align="left"><input name="admin_phone" type="text" id="admin_phone" value="{*$row['admin_phone']*}" size="30" maxlength="20" /></td>
                                    </tr>
                                    <tr>
                                        <td align="right">E-mail地址:</td>
                                        <td align="left"><input name="admin_mail" type="text" id="admin_mail" value="{*$row['admin_mail']*}" size="30" maxlength="50" /></td>
                                        <td align="right">邮政编号:</td>
                                        <td align="left"><input name="admin_postal" type="text" id="admin_postal" value="{*$row['admin_postal']*}" size="30" maxlength="20" /></td>
                                    </tr>
                                    
                                    <tr>
                                        <td align="right">紧急联系人:</td>
                                        <td align="left"><input name="admin_urgent_name" type="text" id="admin_urgent_name" value="{*$row['admin_urgent_name']*}" size="30" maxlength="20" /></td>
                                        <td align="right">紧急联系电话:</td>
                                        <td align="left"><input name="admin_urgent_phone" type="text" id="admin_urgent_phone" value="{*$row['admin_urgent_phone']*}" size="30" maxlength="20" /></td>
                                    </tr>
									<tr>
                                        <td align="right">联系地址:</td>
                                        <td colspan="3" align="left"><input name="admin_addr" type="text" id="admin_addr" value="{*$row['admin_addr']*}" size="60" maxlength="80" /></td>
                                    </tr>
                                    <tr>
                                        <td colspan="4" align="center"><input type="submit" name="Submit" class="myinput" value="提 交" />
                                            &nbsp;&nbsp;
                                            <input type="button" name="back" class="myinput" value="返 回" onclick="window.history.back()" /></td>
                                    </tr>
                                </tbody>
                            </table>
                        </form>
                    </div>
                </div>
                <div class="content_main_bottom">
                    <div class="content_main_bottom_left"></div>
                    <div class="content_main_bottom_right"></div>
                </div>
                {*else*}
                <script type="text/javascript">
                    $(function(){
					
						$("#skey").autocomplete(admin_user, {
                            minChars: 1,
                            max: 12,
                            autoFill: false,
                            mustMatch: false,
                            matchContains: true,
                            scrollHeight: 220,
                            width:500,
                            multiple:false,
                            formatItem: function(row, i, max) {
                                return "<span style='width:140px'>"+row.key+"</span><span style='width:120px'>"+row.name+"</span><span style='width:120px'>"+row.group+"</span><span>"+row.club+"</span>";
                            },
                            formatMatch: function(row, i, max) {
                               return row.keyname;
  
                            },
                            formatResult: function(row) {								//返回结果
                                return row.key;
                            }
                        });
					
					
                        $("#checkall").toggle(
                        function(){
                            select_all("idlist[]",true);
                        },
                        function(){
                            select_all("idlist[]",false);
                        }
                    );
                        $("#list_form").submit(function(){
                            if(!count_select("idlist[]")){
                                my_alert('请选择id记录','错误提示');
                                return false;
                            };
                            if($("#alltype").val()==''){
                                my_alert('请选择操作方式','错误提示',"$('#alltype').focus()");
                                return false;
                            };
                            if(confirm('确定进行操作?')==false){
                                return false;
                            }
                            return true;
                        });
                    });



                </script>
                <div class="pannel">
                    <div class="pl"></div>
                    <div class="pr"></div>
                    <div class="pc1">
                        <form action="" method="post" id="search_form" name="search_form">
                            <input name="dpt" id="dpt" type="hidden" value="{*$cf_dpt*}" />
                            <div class="pt">
                                <p class="active">
                                登录名:
                                <input name="skey" type="text" class="tet" id="skey" value="{*$skey*}" size="15" />
                                &nbsp;&nbsp;中文名
                                <input name="skey2" type="text" class="tet" id="skey2" value="{*$skey2*}" size="15" />
                                &nbsp;&nbsp;<!--{*html_options name=stype options=$cf_info_var_common['scheck'] selected=$stype|default:''*}-->

                                &nbsp;
                                {*html_options name=gid options=$group selected=$gid*}
                                &nbsp;

                                <input type="image" src="public/images/admin/icon_search_btn.gif">
                            	</p>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="content_panel_title">
                    <div class="contentpanelleft"></div>
                    <div class="contentpanelcenter">
                        <span class="contentpanelcenter_font">员工账号管理</span>
                        <span><a class="edit at" href="{*$cf_self_path*}-act_add.htm?dpt={*$cf_dpt*}">新增员工账号</a></span>                    </div>
                    <div class="contentpanelrihgt"></div>
                </div>
                
                <div class="content_table_center_style">
                    <div class="p8">
                        <form name="list_form" id="list_form" method="post" action="{*$cf_self_path*}-act_all.htm">
                            <input name="act" type="hidden" value="all" />
                            <input name="gid" type="hidden" value="{*$smarty['get'].gid*}" />
                             <div class="bq clearfix">
                      <b><a href="{*$cf_self_path*}-act_index.htm?dpt={*$cf_dpt*}&self=0" class="{*if $self=='0'*}active{*/if*}">所 有 </a></b><b><a href="{*$cf_self_path*}-act_index.htm?dpt={*$cf_dpt*}&self=1" class="{*if $self==1*}active{*/if*}" >在 职</a></b> <b><a href="{*$cf_self_path*}-act_index.htm?dpt={*$cf_dpt*}&amp;self=2" class="{*if $self==2*}active{*/if*}" >离 职</a></b></div>
                            <table width="100%" class="tbl tbl_nbr">
                                <thead>
                                    <tr class="thd">
                                        <td width="6%" align="center">选择</td>
                                        <td width="3%" align="center" class="thr">ID</td>
                                        <td width="9%" align="center" class="thr"><a href="{*$cf_self_path*}-act_index.htm{*$key_word*}&order=admin_name">登录名</a></td>
                                        <td width="8%" align="center" class="thr"><a href="{*$cf_self_path*}-act_index.htm{*$key_word*}&order=admin_true_name">中文名</a></td>
                                        <td width="7%" align="center" class="thr">地点</td>
                                        <td width="9%" align="center" class="thr"><a href="{*$cf_self_path*}-act_index.htm{*$key_word*}&order=admin_gid">权限组</a></td>
                                        <td width="6%" align="center" class="thr"><a href="{*$cf_self_path*}-act_index.htm{*$key_word*}&order=admin_sex">性别</a></td>
                                        <td width="6%" align="center" class="thr"><a href="{*$cf_self_path*}-act_index.htm{*$key_word*}&order=admin_work_type">类型</a></td>
                                        <td width="6%" align="center" class="thr"><a href="{*$cf_self_path*}-act_index.htm{*$key_word*}&order=admin_work_status">状态</a></td>
                                        <td width="11%" align="center" class="thr"><a href="{*$cf_self_path*}-act_index.htm{*$key_word*}&order=admin_join_date">入职日期</a></td>
                                        <td width="11%" align="center" class="thr">最后登录</td>
                                        <td width="6%" align="center" class="thr"><!--<a href="{*$cf_self_path*}-act_index.htm{*$key_word*}&order=admin_join_date">日期</a>--><a href="{*$cf_self_path*}-act_index.htm{*$key_word*}&order=admin_check">登录</a></td>
                                        <td colspan="2" align="center" class="thr">操作</td>
                                    </tr>
                                </thead>
                                <tbody>
                                    {*foreach $data_ary as $item *}             				       
                                    <tr onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ffc'" style=" background-color:#ffffff">
                                        <td align="center"><input type="checkbox" name="idlist[]" value="{*$item['admin_id']*}" style="height:15px;" /></td>
                                        <td align="center">{*$item['admin_id']*}</td>
                                        <td>{*$item['admin_name']*}</td>
                                        <td>{*$item['admin_true_name']*}</td>
                                        <td align="center">{*$cf_info_var['workplace'][$item['admin_place']]*}</td>
                                        <td align="center">{*$item['g_title']*}</td>
                                        <td align="center">{*$cf_info_var_common['sex'][$item['admin_sex']]*}</td>
                                        <td align="center">{*$cf_info_var['work_type'][$item['admin_work_type']]*}</td>
                                        <td align="center">{*$cf_info_var['work_status'][$item['admin_work_status']]*}</td>
                                        <td align="center">{*$item['admin_join_date']*}</td>
                                        <td align="center">{*if $item['admin_last_login']*}
                                                {*$item['admin_last_login']|date_format:"%Y-%m-%d %H:%M:%S"*}{*/if*}
                                            </td>
                                            <td align="center"><a href="{*$cf_self_path*}-act_set_id_{*$item['admin_id']*}_type_check_value_{*$item['admin_check']*}.htm?dpt={*$cf_dpt*}">
                                                {*$cf_info_var['2'][$item['admin_check']]*}
                                            </a></td>
                                        <td width="6%" align="center"><a href="{*$cf_self_path*}-act_edit_id_{*$item['admin_id']*}.htm?dpt={*$cf_dpt*}" class="edit">修改</a></td>
                                        <td width="6%" align="center"><a href="{*$cf_self_path*}-act_del_id_{*$item['admin_id']*}.htm?dpt={*$cf_dpt*}" class="del" onclick="return confirm('你确定要删除吗?')">删除</a></td>
                                    </tr>
                                    {*/foreach*}

                                    <tr class="tft">
                                        <td colspan="14" style="padding:0;">
                                            <table width="100%" border="0">
                                                <tr>
                                                    <td width="6%" align="center" style="border:0;padding:0;"><input type="button" name="checkall" id="checkall" class="myinput" value="全 选" /></td>
                                                    <td width="22%" align="center" style="border:0;padding:0;">
                                                    <select name="alltype" id="alltype">
                                                            <option selected="selected" value="">操作选择</option>
                                                            <option value="allcheck">允许登录</option>
                                                            <option value="alluncheck">禁止登录</option>
                                                            <option value="allleave">离职</option>
                                                            <!--<option value="alldel">删除</option>-->
                                                        </select>
                                                        &nbsp;<input type="submit" name="submit_all" id="submit_all" value="批量操作" class="myinput" /></td>
                                                    <td width="72%" style="border:0;padding:0;" ><div class="turnPage"><p>{*$page*}</p></div></td>
                                                </tr>
                                            </table>                                </td>
                                    </tr>
                                </tbody>
                            </table>
                        </form>
                    </div>
                </div>
                <div class="content_main_bottom">
                    <div class="content_main_bottom_left"></div>
                    <div class="content_main_bottom_right"></div>
                </div>
                <br />
                {*/if*}
            </div>        </td>
    </tr>
</table>
{*include file="template/admin_foot.htm"*}
